package com.yellowpage.omc.o2o.data;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.GenericGenerator;

/**
 * ExtInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "OMC_EXT_INFO")
public class ExtInfo implements java.io.Serializable {

	// Fields

	private Long extInfoId;
	private String extName;
	private String extType;
	private String note;
	private Integer createUser;
	private Date createTime;
	private Integer lastUpdateUser;
	private Date lastUpdateTime;

	// Constructors

	/** default constructor */
	public ExtInfo() {
	}

	/** minimal constructor */
	public ExtInfo(String extName) {
		this.extName = extName;
	}

	/** full constructor */
	public ExtInfo(String extName, String extType, String note,
			Integer createUser, Date createTime, Integer lastUpdateUser,
			Date lastUpdateTime) {
		this.extName = extName;
		this.extType = extType;
		this.note = note;
		this.createUser = createUser;
		this.createTime = createTime;
		this.lastUpdateUser = lastUpdateUser;
		this.lastUpdateTime = lastUpdateTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "EXT_INFO_ID", unique = true, nullable = false)
	public Long getExtInfoId() {
		return this.extInfoId;
	}

	public void setExtInfoId(Long extInfoId) {
		this.extInfoId = extInfoId;
	}

	@Column(name = "EXT_NAME", nullable = false, length = 100)
	public String getExtName() {
		return this.extName;
	}

	public void setExtName(String extName) {
		this.extName = extName;
	}

	@Column(name = "EXT_TYPE", length = 64)
	public String getExtType() {
		return this.extType;
	}

	public void setExtType(String extType) {
		this.extType = extType;
	}

	@Column(name = "NOTE", length = 200)
	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	@Column(name = "CREATE_USER")
	public Integer getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(Integer createUser) {
		this.createUser = createUser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "CREATE_TIME", length = 0)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "LAST_UPDATE_USER")
	public Integer getLastUpdateUser() {
		return this.lastUpdateUser;
	}

	public void setLastUpdateUser(Integer lastUpdateUser) {
		this.lastUpdateUser = lastUpdateUser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "LAST_UPDATE_TIME", length = 0)
	public Date getLastUpdateTime() {
		return this.lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

}